import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'


//  引入element-plus的文件
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//  引入element-plus的css样式
import 'element-plus/dist/index.css'

import App from './App.vue'
import router from './router'
// 引入iconfont字体图标库
import "@/assets/fonts/iconfont.css";

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// 将element-plus挂载在app上，全局使用
// app.use(ElementPlus)
app.use(ElementPlus, {
    locale: zhCn,
})

app.use(createPinia())
app.use(router)

app.mount('#app')
